// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

//将vue-router对象集成到这个项目中来
import vueRouter from 'vue-router'

//将vue-router对象绑定到vue对象上
Vue.use(vueRouter)

//导入路由规则对应的路由对象
import login from './components/account/login'
import register from './components/account/register'


//定义路由规则
var router = new vueRouter({
  routes:[
    {
      path:'/login',component:login
    },
    {
      path:'/register',component:register
    }
  ]
  });
Vue.config.productionTip = false

//注册mint-ui
import mintui from 'mint-ui'
import 'mint-ui/lib/style.min.css'
//在vue中全局使用mintui
Vue.use(mintui)
//引入mui的css文件
import '../mui/dist/css/mui.css'
/* eslint-disable no-new */
//利用vue对象进行解析渲染
new Vue({
  el: '#app',
  //使用路由对象实例
  router,
  components: { App },
  template: '<App/>',
})
